<?php
class SQLException extends Exception {
	protected $code    = 0;
	
	public function __construct($message = null, $code = 0) {
        parent::__construct($message, $code);
    }
	
	public function __toString() {
		return "Erreur SQL ({$this->code}) :  '{$this->message}'";
	}
}
?>